#ifndef CURRENTUSER_H
#define CURRENTUSER_H

#include "User.h"

#include <QSqlError>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QString>
#include <QDebug>

class CurrentUser
{
public:
//    explicit CurrentUser(QObject *parent = nullptr);
    void createCurrentUserTable();  //建表
    void insertCurrentUser(User u); //插入当前用户
    User queryCurrentUser();    //查询当前用户
    void deleteCurrentUser();   //删除当前用户
    void updateCurrentUser(QString name,QString phone_num);   //修改当前用户信息

signals:

};

#endif // CURRENTUSER_H
